﻿using MediatR;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using S.Common.Enums.Archives;
using S.EarTag.Domain.Model;
using SqlSugar;

namespace S.EarTag.API.Mediator.MediatorCommand
{
    public class EarTagUpdateCommand:IRequest<bool>
    {
        public int EarTagId { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTimeOffset WarehousingDate { get; set; }

        /// <summary>
        /// 出生状态
        /// </summary>
        public string? BirthState { get; set; }

        /// <summary>
        /// 对应品种
        /// </summary>
        public VarietyEnum BreedItem { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        public string? EarTag { get; set; }

        /// <summary>
        /// 耳号使用状态
        /// </summary>
        public string? UseState { get; set; } = "未使用";

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset CreateDate { get; set; }


        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string? UpdateDate { get; set; }
        /// <summary>
        /// 修改耳号状态
        /// </summary>
        public bool BindState { get; set; }
    }
}
